package week8;

import com.sun.jdi.NativeMethodException;

public class    Car extends Transport{

    private String fuelType;
    public Car(String name,int speed,String fuelType){
        super(name,speed);
        this.fuelType=fuelType;
    }

    @Override
    public void showMoveMethed() {
        super.showMoveMethed();
        System.out.println(name+"的燃料类型为"+fuelType);
    }
}
